const jsonString =
  '{"name":"frank","age":18,"friends":{"name":"why"},"hobbies":["篮球","足球"]}';

const info = JSON.parse(jsonString, (key, value) => {
  if (key === "age") {
    return value - 1;
  }
  return value;
});

console.log(info);
